<script type="text/javascript" >
    stFacebookToolbox.load_tooltip();
    stFacebookToolbox.on_submitform('#settingForm');

</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
                <ul class="menu_right">
                      <li>
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('feed_to_tab');" id="settings">Settings</a>
                    </li>
                      <li>
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('feed_categories');" id="categories"> Categories set-up</a>
                    </li>
                      <li  class="current">
                   <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('feed_statistics');" id="statistics"> Statistics tab</a>
                    </li>
                </ul>

                    <h2 class="red_color" style="padding-left:15px;">Statistic Post/Page Clicks
            </h2>
        <div>&nbsp;</div>
<table class="widefat" cellspacing="0">
                <thead>
                    <tr>
                        <?php print_column_headers('stFacebookToolbox_stFacebookToolbox'); ?>
                    </tr>
                </thead>

                <tbody>
                <?php
                if (count($results) > 0) {
                    $tr_class = "";
                    $upload_data = wp_upload_dir();
                    foreach ($results as $result) {
                        if( empty($tr_class) || $tr_class == "class='bg_gray2'"){
                            $tr_class = "class='bg_gray1'";
                        }else{
                            $tr_class = "class='bg_gray2'";
                        }
                        echo "<tr id='$result->post_id' $tr_class >"
                        . "<td>" . $result->post_id
                        . "<td>" . get_permalink($result->post_id)
//
//                        . "<div class=\"row-actions short_action\">"
//                        . "<span class='edit' action='stFacebookToolboxEdit' short_action='' id='$result->id'>Edit | </span>"
//                        . "<span class='trash' short_action='delete' id='$result->id' confirm='Are you sure you want to delete this stFacebookToolbox?'>Trash </span>"
//                        . "</div>"
                        . "</td>"
                        . "<td>" . $result->likes . "</td>"
                         . "<td>" . $result->ip . "</td>"
                        . "<td>" . $result->cdate . "</td>"
                        . "</tr>"
                        ;
                    }
                }
                ?>
                </tbody>
            </table>
            <div class="page_d">
                <?php echo $pagination?>
                <div class="cl"></div>
            </div>
    </div>
</div>